package mem;

import java.util.HashMap;

import mem.interfaces.IMem;

public class Mem implements IMem{
	
	private double x;
	private double y;
	private double a;
	private HashMap<Integer, Float> r=new HashMap<Integer, Float>();
	private int current_id;
	public Mem(){
		x = 0;
		y = 0;
		a = 0;
		current_id = 0;
	}
	
	public int getCurrent_id() {
		return current_id;
	}
	
	public void increment(){
		setCurrent_id(getCurrent_id() + 1);
	}

	public void setCurrent_id(int current_id) {
		this.current_id = current_id;
	}

	public void setR(HashMap<Integer, Float> r) {
		this.r = r;
	}

	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}
	public double getA() {
		return a;
	}
	public void setA(double a) {
		this.a = a;
	}
	
	public HashMap<Integer, Float> getR() {
		return r;
	}

	public String toString(){
		return "x:="+x+"\ny:="+y+"\na:="+a+"\n"+"r:="+r;
	}
	
}
